<?php if ( ! defined('BASEPATH')) exit('This file does not run directly. Sorry.'); ?>
<?php
/**
 * Kalaisoo.
 *
 * A lightweight no-framework framework written in PHP.
 *
 * @package Kalaisoo
 * @author $Author: info@sah-company.com $
 */
?>
<?php
foreach ($foundBeansGrouped as $group=>$beans):
	if (empty($beans)) continue;
?>
<section class="found">
	<h2><?php echo __($group); ?></h2>
<?php
	foreach ($beans as $n=>$bean):
		$url = ahref(sprintf($urlPattern, $group, $bean->getId()));
?>
	<article>
		<h1>
			<a
				href="<?php echo $url; ?>">
				<?php echo $bean->view(),"\n"; ?>
			</a>
		</h1>
	</article>
<?php
	endforeach;
?>
</section>
<?php
endforeach;
?>
